package com.zwim.core.message;

import com.google.protobuf.Message;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToByteEncoder;

/**
 *将消息体转为字节便于传输
 */
public class ProtobufMessageEncoder extends MessageToByteEncoder<Message> {
    @Override
    protected void encode(ChannelHandlerContext channelHandlerContext, Message message,
                          ByteBuf byteBuf) throws Exception {

    }
}
